package com.github.dice.service;

import com.github.dice.entity.PlayerAndDiceMapping;
import com.github.dice.entity.RoomOwner;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.annotation.Nonnull;
import java.util.List;

public interface IRoomOwnerService extends IService<RoomOwner> {
    Boolean checkAllRoll(String roomNumber);

    List<PlayerAndDiceMapping> showResult(String roomNumber, String roomOwnerName);

    RoomOwner getRoomOwnerByNameAndPwd(@Nonnull String roomOwnerName, @Nonnull String roomOwnerPwd);

    RoomOwner getRoomOwnerByRoomOwnerName(@Nonnull String roomOwnerName);

    List<RoomOwner> queryRoomOwnerList(String name);

    RoomOwner addRoomOwner(RoomOwner roomOwner);

    void deleteRoomAndAllMapping(@Nonnull String roomNumber);
}
